import { useState } from "react";

function App() {
    const [value, setValue] = useState('hello')

    function onChange(e) {
        console.log(value);

        setValue(e.target.value)
    }

    return (
        <input type="text" value={value} onChange={onChange} />
    )
}
export default App;